SHELL=/bin/sh

CC=g++
SRC=main.cpp camera.cpp vec3f.cpp world.cpp units/cube.cpp objloader.cpp imageloader.cpp units/infantry.cpp

CFLAGS=-Wall -g
LIBS=-lglut

WINCC=i686-pc-mingw32-g++
WINLIBS=-lglut32 -lglu32 -lopengl32

OUT=pulpwn4g3

DOCCFG=Doxyfile

all:
	$(CC) $(CFLAGS) -o $(OUT) $(SRC) $(LIBS)
release:
	$(CC) -O2 -o $(OUT) $(SRC) $(LIBS)
windows:
	$(WINCC) -o $(OUT).exe $(SRC) $(WINLIBS) -mwindows
doc:
	doxygen $(DOCCFG)
clean:
	rm -rf $(OUT) $(OUT).exe
	rm -rf doc/
